package com.hliushi.demo.web;

import com.hliushi.demo.utils.BiAudit;
import com.hliushi.demo.utils.LogType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author llhuang10
 */
@RestController
@RequestMapping("/api")
public class ApplicationResource {


    /**
     * 获取应用
     *
     * @param appId
     * @return
     */
    @GetMapping("/applications/{appId}")
    @BiAudit(
            applicationCode = "001",
            targetCode = "02",
            module = "ApplicationResource",
            logType = LogType.OPERATE_LOG
    )
    public ResponseEntity<String> getApplication(@PathVariable String appId) {

        return ResponseEntity.ok("visit success!");
    }
}